package com.ruoyi.common.mytools.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

/**
 * (Orders)表实体类
 *
 * @author makejava
 * @since 2023-05-02 15:52:11
 */
@Data
@JsonIgnoreProperties(allowSetters = true, value = {"token"})
public class WxOrderPay{

    private String openid;

    //示例值：wxd678efh567hg6787
    private String appid;

    //商户号 示例值：1230000109
    private String mch_id;


    private String nonce_str;

    //商品订单号
    private String sign;

    //商品描述
    private String body;


    private String out_trade_no;

    //订单总金额，单位为分
    private Integer total_fee;

    //终端IP
    private String spbill_create_ip;

    //通知地址
    private String notify_url;

    //小程序取值如下：JSAPI，详细说明见
    private String trade_type;


    //订单金额
    //amount:{"total":100}
    //private Map<String, Object> amount;

    //支付者信息
    //payer:{"openid":"oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"}
    /*private Map<String, Object> payer;

    public WxOrderPay(int total,String openid){
        this.amount=new HashMap<String,Object>();
        this.amount.put("total",total);

        this.payer=new HashMap<String,Object>();
        this.payer.put("openid",openid);
    }
*/
}

